
---
--- 配置文件
--- Created by E.T.
--- DateTime: 2018/10/25 11:35
---
_M={}

------------------------------------注册中心配置------------------------------------------------

_M.eurekaUrl="http://10.10.10.210:8761/eureka/apps,http://ceshi.com" --注册中心地址,多个地址用逗号隔开（暂时没用）

_M.apps_data_key ="apps" --注册中心app缓存数据key

_M.users_gray_key ="users_gray" --注册中心app缓存数据key

_M.gray_tag_value ="gray" -- 灰度应用值

_M.gateway_context_path ="/cloudgateway" -- 灰度zuul网关根路径


------------------------------------http配置------------------------------------------------

_M.mimetype_urlencoded="application/x-www-form-urlencoded"

_M.mimetype_json="application/json"

_M.mimetype_multipart="multipart/form-data"

------------------------------------redis配置------------------------------------------------
--redis地址(已在插件配置，暂不需要)
_M.redis_config = {
    name = "xhg_dev",
    serv_list = {
        {ip="10.10.10.235", port = 6379},
        {ip="10.10.10.235", port = 6380},
        {ip="10.10.10.235", port = 6381},
        {ip="10.10.10.234", port = 6379},
        {ip="10.10.10.234", port = 6380},
        {ip="10.10.10.234", port = 6381},
    },
}
_M.apps_data_ttl =60 --缓存失效时间（秒）

_M.contextpath_service_key  ="oms:contextpath:service" --ontextpath路径集合key

_M.env_prefix_key  ="oms:env:prefix" --环境前缀集合key

_M.env_appname_key  ="oms:env:service" --环境+路径组合key

_M.oms_gray_user = "oms:gray:token" --oms灰度用户key

_M.upstream_name_cache_key  ="kong:stream:name:cache" --kong上游名称缓存key

_M.gray_users_cache_key  ="kong:gray:users:cache" --kong灰度用户缓存key


return _M